package cn.gson.springboot.controller.cuscontroller;

import cn.gson.springboot.model.pjos.Mylog;
import cn.gson.springboot.model.service.cusservice.MyLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/vue")
public class MyLogController {
    @Autowired
    MyLogService myLogService;

    //    查询当前登录人的操作日志
    @RequestMapping("/select-mylog")
    @ResponseBody
    public List<Mylog> myLog(Integer empId){
        return myLogService.myLog(empId);
    }
}
